<template>
  <div>
    菜单一的子菜单二
    <br>
    <el-input v-model="addForm.name" placeholder="输入路由name" style="width:200px"></el-input>
    <br>
    <el-input v-model="addForm.path" placeholder="输入路由paht" style="width:200px"></el-input>
    <br>
    <el-button @click="handleAddRoute">添加路由</el-button>
  </div>
</template>
<script>
export default {
  data () {
    return {
      addForm: {}
    }
  },
  methods: {
    /**
     * 添加路由或重新生成路由
     */
    handleAddRoute () {
      console.log(this.addForm)
      this.$store.dispatch('set_aside_menu', this.addForm)
    }
  }
}
</script>
